package cn.jane.rpc.netty.client;

/**
 * RPC 请求
 */
public class RpcRequest {

    /**
     * 调用接口名称
     */
    private final String interfaceName;

    /**
     * 调用方法名称
     */
    private final String methodName;

    /**
     * 序列化后的参数数组
     */
    private final byte[] serializedArguments;

    public RpcRequest(String interfaceName, String methodName, byte[] serializedArguments) {
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.serializedArguments = serializedArguments;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public byte[] getSerializedArguments() {
        return serializedArguments;
    }
}
